package cn.briarbear.myblog.entity.dto;


import javax.validation.constraints.NotNull;

/**
 * 用户登陆表单
 */
public class UserLoginForm {

    @NotNull(message = "用户名不能为空！")
    private String username;

    @NotNull(message = "密码不能为空")
    private String password;

    /**
     * 记住登录
     */
    private String rememberme;

    public UserLoginForm(String username, String password, String rememberme) {
        this.username = username;
        this.password = password;
        this.rememberme = rememberme;
    }

    public UserLoginForm() {
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRememberme() {
        return rememberme;
    }

    public void setRememberme(String rememberme) {
        this.rememberme = rememberme;
    }
}